Optimal. Leaf size=117 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right ) \left (3 a^2 f-4 a b e+8 b^2 d\right )}{8 b^{5/2}}+\frac{x \sqrt{a+b x^2} (4 b e-3 a f)}{8 b^2}-\frac{c \sqrt{a+b x^2}}{a x}+\frac{f x^3 \sqrt{a+b x^2}}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.135977, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {1807, 1585, 1159, 388, 217, 206} \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right ) \left (3 a^2 f-4 a b e+8 b^2 d\right )}{8 b^{5/2}}+\frac{x \sqrt{a+b x^2} (4 b e-3 a f)}{8 b^2}-\frac{c \sqrt{a+b x^2}}{a x}+\frac{f x^3 \sqrt{a+b x^2}}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1807
Rule 1585
Rule 1159
Rule 388
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{c+d x^2+e x^4+f x^6}{x^2 \sqrt{a+b x^2}} \, dx &=-\frac{c \sqrt{a+b x^2}}{a x}-\frac{\int \frac{-a d x-a e x^3-a f x^5}{x \sqrt{a+b x^2}} \, dx}{a}\\ &=-\frac{c \sqrt{a+b x^2}}{a x}-\frac{\int \frac{-a d-a e x^2-a f x^4}{\sqrt{a+b x^2}} \, dx}{a}\\ &=-\frac{c \sqrt{a+b x^2}}{a x}+\frac{f x^3 \sqrt{a+b x^2}}{4 b}-\frac{\int \frac{-4 a b d-a (4 b e-3 a f) x^2}{\sqrt{a+b x^2}} \, dx}{4 a b}\\ &=-\frac{c \sqrt{a+b x^2}}{a x}+\frac{(4 b e-3 a f) x \sqrt{a+b x^2}}{8 b^2}+\frac{f x^3 \sqrt{a+b x^2}}{4 b}+\frac{\left (8 a b^2 d-a^2 (4 b e-3 a f)\right ) \int \frac{1}{\sqrt{a+b x^2}} \, dx}{8 a b^2}\\ &=-\frac{c \sqrt{a+b x^2}}{a x}+\frac{(4 b e-3 a f) x \sqrt{a+b x^2}}{8 b^2}+\frac{f x^3 \sqrt{a+b x^2}}{4 b}+\frac{\left (8 a b^2 d-a^2 (4 b e-3 a f)\right ) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )}{8 a b^2}\\ &=-\frac{c \sqrt{a+b x^2}}{a x}+\frac{(4 b e-3 a f) x \sqrt{a+b x^2}}{8 b^2}+\frac{f x^3 \sqrt{a+b x^2}}{4 b}+\frac{\left (8 b^2 d-4 a b e+3 a^2 f\right ) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{8 b^{5/2}}\\ \end{align*}
Mathematica [A] time = 0.110432, size = 103, normalized size = 0.88 \[ \frac{\frac{\sqrt{b} \sqrt{a+b x^2} \left (-3 a^2 f x^2+2 a b x^2 \left (2 e+f x^2\right )-8 b^2 c\right )}{a x}+\tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right ) \left (3 a^2 f-4 a b e+8 b^2 d\right )}{8 b^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 140, normalized size = 1.2 \begin{align*}{\frac{f{x}^{3}}{4\,b}\sqrt{b{x}^{2}+a}}-{\frac{3\,afx}{8\,{b}^{2}}\sqrt{b{x}^{2}+a}}+{\frac{3\,{a}^{2}f}{8}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{5}{2}}}}+{\frac{ex}{2\,b}\sqrt{b{x}^{2}+a}}-{\frac{ae}{2}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{3}{2}}}}+{d\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){\frac{1}{\sqrt{b}}}}-{\frac{c}{ax}\sqrt{b{x}^{2}+a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.41081, size = 489, normalized size = 4.18 \begin{align*} \left [\frac{{\left (8 \, a b^{2} d - 4 \, a^{2} b e + 3 \, a^{3} f\right )} \sqrt{b} x \log \left (-2 \, b x^{2} - 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) + 2 \,{\left (2 \, a b^{2} f x^{4} - 8 \, b^{3} c +{\left (4 \, a b^{2} e - 3 \, a^{2} b f\right )} x^{2}\right )} \sqrt{b x^{2} + a}}{16 \, a b^{3} x}, -\frac{{\left (8 \, a b^{2} d - 4 \, a^{2} b e + 3 \, a^{3} f\right )} \sqrt{-b} x \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) -{\left (2 \, a b^{2} f x^{4} - 8 \, b^{3} c +{\left (4 \, a b^{2} e - 3 \, a^{2} b f\right )} x^{2}\right )} \sqrt{b x^{2} + a}}{8 \, a b^{3} x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.77758, size = 250, normalized size = 2.14 \begin{align*} - \frac{3 a^{\frac{3}{2}} f x}{8 b^{2} \sqrt{1 + \frac{b x^{2}}{a}}} + \frac{\sqrt{a} e x \sqrt{1 + \frac{b x^{2}}{a}}}{2 b} - \frac{\sqrt{a} f x^{3}}{8 b \sqrt{1 + \frac{b x^{2}}{a}}} + \frac{3 a^{2} f \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{8 b^{\frac{5}{2}}} - \frac{a e \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{2 b^{\frac{3}{2}}} + d \left (\begin{cases} \frac{\sqrt{- \frac{a}{b}} \operatorname{asin}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b < 0 \\\frac{\sqrt{\frac{a}{b}} \operatorname{asinh}{\left (x \sqrt{\frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b > 0 \\\frac{\sqrt{- \frac{a}{b}} \operatorname{acosh}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{- a}} & \text{for}\: b > 0 \wedge a < 0 \end{cases}\right ) - \frac{\sqrt{b} c \sqrt{\frac{a}{b x^{2}} + 1}}{a} + \frac{f x^{5}}{4 \sqrt{a} \sqrt{1 + \frac{b x^{2}}{a}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2104, size = 163, normalized size = 1.39 \begin{align*} \frac{1}{8} \, \sqrt{b x^{2} + a}{\left (\frac{2 \, f x^{2}}{b} - \frac{3 \, a b f - 4 \, b^{2} e}{b^{3}}\right )} x + \frac{2 \, \sqrt{b} c}{{\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2} - a} - \frac{{\left (8 \, b^{\frac{5}{2}} d + 3 \, a^{2} \sqrt{b} f - 4 \, a b^{\frac{3}{2}} e\right )} \log \left ({\left (\sqrt{b} x - \sqrt{b x^{2} + a}\right )}^{2}\right )}{16 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]